package sjd.ahsj.springbootmybatisplusoracle.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 通用字段
 *
 * @author zhanghaogao
 * @create 2017-11-11 上午9:32
 **/
@Getter
@Setter
public class SuperEntity<T extends Model> extends Model<T> {


    /**
     * 主键ID
     */
    @TableId
    @ApiModelProperty("id")
    private Integer id;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
